Document removing of accelerators
authorHolger Berndt <hb@gnome.org>
Thu, 17 May 2012 14:12:55 +0000 (16:12 +0200)
committerHolger Berndt <hb@gnome.org>
Fri, 18 May 2012 13:41:31 +0000 (15:41 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=676243

gtk/gtkaccelmap.c

index 5ab19b5fa1067d57d0b5a9fb3e12b640306760d8..8dcdc5b084a79cf2c83eb85be4d2d38ad834790f 100644 (file)
@@ -207,6 +207,9 @@ _gtk_accel_path_is_valid (const gchar *accel_path)
  * To change the accelerator during runtime programatically, use
  * gtk_accel_map_change_entry().
  * 
+ * Set @accel_key and @accel_mods to 0 to request a removal of
+ * the accelerator.
+ *
  * Note that @accel_path string will be stored in a #GQuark. Therefore, if you
  * pass a static string, you can save some memory by interning it first with 
  * g_intern_static_string().